﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace YQFK.Models
{
    public class ResponeModel
    {
        private int _code;
        private string _info;
        private object _data;
        private int _count;
        public ResponeModel(int code=0 ,string info="操作成功" ,object data=null, int count=0)
        {
            _code = code;
            _info = info;
            _data = data;
            _count = count;
        }

        public ResponeModel( object data)
        {
            _code = 0;
            _info = "操作成功";
            _data = data;
            _count = 0;
        }

        public int code { get => _code; set => _code = value; }
        public string info { get => _info; set => _info = value; }
        public object data { get => _data; set => _data = value; }
        public int count { get => _count; set => _count = value; }
    }
}